module.exports = class ScriptImport {
	importText = "";
	importFrom;
	sourceImportText;
	constructor(sourceImportText) {
		this.sourceImportText = sourceImportText;
		this.importText = sourceImportText
			.replace(/'/g, '"')
			.replace(";", "")
			.replace(/{/g, " { ")
			.replace(/}/g, " } ");
		this.analysis();
	}
	analysis() {
		let text = this.importText.split("import ")[1].trim();
		this.importFrom = text.split('"')[1];
	}
}